package com.itheima.health.dao;

import com.itheima.health.pojo.CheckItem;
import com.itheima.health.pojo.Setmeal;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * @author
 */
@Mapper
public interface CheckGroupDetailDao {


    /**
     * 向中间表插入数据
     * @param checkGroupId
     * @param checkItemId
     */
    void insert(Integer checkGroupId, Integer checkItemId);

    /**
     * 删除中间表数据
     * @param id
     */
    @Delete("delete from t_checkgroup_detail  where checkgroup_id=#{id}")
    void delete(Integer id);


}
